package cloud.keveri.base;

import cloud.keveri.base.result.Response;
import cloud.keveri.base.result.ResponseStatus;

import java.util.Collections;

/**
 *
 * <p>
 * 作者：沈自在
 **/
public class DefaultResponse implements Response {
    /**
     *
     */
    private ResponseStatus status;

    /**
     *
     */
    private Object payload = Collections.emptyMap();

    /**
     *
     */
    @Override
    public void setStatus(ResponseStatus status) {
        this.status = status;
    }

    /**
     *
     */
    @Override
    public ResponseStatus getStatus() {
        return status;
    }

    /**
     *
     */
    @Override
    public void setPayload(Object payload) {
        this.payload = payload;
    }

    /**
     *
     */
    @Override
    public Object getPayload() {
        return payload;
    }
}
